package com.github.pagehelper;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.p2p.trans.client.model.AccountLogVO;

public class MyPage implements Serializable {

	private static final long serialVersionUID = 2530488275747120526L;
	private int pageNum;
	private int pageSize;
	private int startRow;
	private int endRow;
	private long total;
	private int pages;
	private List list;

	private String startDate;

	private String endDate;

	protected Map<String, Object> params = new HashMap<String, Object>();

	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	public Map<String, Object> getParams() {
		return params;
	}

	public void setParams(Map<String, Object> params) {
		this.params = params;
	}

	public int getPageNum() {
		return pageNum;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getStartRow() {
		return startRow;
	}

	public void setStartRow(int startRow) {
		this.startRow = startRow;
	}

	public int getEndRow() {
		return endRow;
	}

	public void setEndRow(int endRow) {
		this.endRow = endRow;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public int getPages() {
		return pages;
	}

	public void setPages(int pages) {
		this.pages = pages;
	}

	public List getList() {
		return list;
	}

	public void setList(List list) {
		this.list = list;
	}

	public static void copy(MyPage page2, List<AccountLogVO> list) {
		Page page = (Page) list;
		page2.setPageNum(page.getPageNum());
		page2.setPageSize(page.getPageSize());
		page2.setStartRow(page.getStartRow());
		page2.setEndRow(page.getEndRow());
		page2.setTotal(page.getTotal());
		page2.setPages(page.getPages());
		page2.setList(page);

	}
}
